<template>
  <div class="box">
    <dl v-for="item in list" :key="item.id">
      <dt>
        <img :src="item.pic" alt="" />
      </dt>
      <dd>
        <p>{{ item.name }}</p>
        <p>{{ item.characteristic }}</p>
        <ul>
          <li>
            <p>￥{{ item.minPrice }}</p>
            <span>低价</span>
          </li>
          <li>
            <p>{{ item.originalPrice }}</p>
            <span> 原价 </span>
          </li>
          <li>
            <p>{{ item.stores }}</p>
            <span>限量</span>
          </li>
        </ul>
      </dd>
    </dl>
  </div>
</template>

<script>
export default {
  props: ["list"],
  data() {
    return {};
  },
  created() {},
  mounted() {},
  methods: {},
  computed: {},
};
</script>

<style scoped lang="scss">
.box {
  width: 100%;
  dl {
    width: 100%;
    padding: 5px;
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    dt {
      flex: 2;
      padding: 5px;
      img {
        width: 100%;
        height: 120px;
      }
    }
    dd {
      flex: 4;
      ul {
        display: flex;
        justify-content: space-between;
        margin-top: 20px;
        text-align: center;
        padding-right: 50px;
        li {
          color: #ccc;
          font-size: 10px;
        }
        li:nth-of-type(1) {
          color: #000;
          p:nth-of-type(1){
              color: red;
          }
        }
      }
      p:nth-of-type(1) {
        font-size: 16px;
      }
      p:nth-of-type(2) {
        color: #ccc;
        font-size: 14px;
        margin-top: 8px;
      }
    }
  }
}
</style>
